
//
// 110429 - AH - (Garage) Created.
//

package org.soekrat.engine.rethor;

/**
 * <p>
 *   Base class for objects that do final processing of sentences produced by
 *   Soekrat system.                      
 * </p>
 * @author Arne Halvorsen (AH)
 */
public class SentenceRenderer 
{
  public String render(String sentence){ return renderStart(sentence); }
  
  protected String renderStart(String sentence)
  {
    sentence=sentence.trim();
    int n=sentence.length();
    if (n==0) return sentence;
    char first=sentence.charAt(0);
    if (Character.isUpperCase(first)) return sentence;
    return ""+Character.toUpperCase(first)+sentence.substring(1);
  }
  
}
